<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="s"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link href="<c:url value="/resources/css/common.css" />" rel="stylesheet">
<s:admin pageName="visit">
<jsp:attribute name="headPart">
	<link href="<c:url value="/resources/bootstrap/css/bootstrap-select.min.css" />" rel="stylesheet">
	<script src="<c:url value="/resources/bootstrap/js/bootstrap-select.min.js" />"></script>
</jsp:attribute>
<jsp:body>
<div class="row main">
	<h4 class="page-header">Visits Count</h4>
		
	<div class="col-sm-12">
		<table class="table table-striped table-hover table-condensed">
        	<thead>
        		<tr class="active">
	               	<th>User Name</th>
	    			<th>Total Visits</th>
	    			<th>Detail</th>
        		</tr>
        	</thead>
        	<tbody>
        	<c:forEach items="${list}" var="item">
        		<tr>
        			<td>${item[0]}</td>
        			<td>${item[1]}</td>
        			<td>
        				<a class="btn btn-default btn-xs" href='<c:url value="/visit/detail?u=${item[0]}"/>'>
		                     <span class="glyphicon glyphicon-zoom-in table-item-icon"></span>
						</a>
        			</td>
	    		</tr>
        	</c:forEach>
        	</tbody>
        </table>
	</div>
</div>
</jsp:body>
</s:admin>
